﻿using DGZImp.BasProject.DomainModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DGZImp.WmsProject.Dtos
{
    internal class Bas_labelDto
    {
    }

    public class ReqGenerateLabelData
    {
        //工单号
        public long LabelId { set; get; }

        public List<string> ValueList { set; get; }

    }



    public class ReqGetLabelData
    {
        //物料id
        public string KeyPartId { set; get; }
        //工序id
        public string GroupId { set; get; }
        //客户id
        public string CustId { set; get; }

        //标签类型
        public int? LabelType { set; get; } = 1;

        //包装层级
        public string Level { set; get; }

        //是否通用，0非通用，1通用
        public int? IsCommon { set; get; } = 0;

        //要打印的序号
        public List<string> ValueList { set; get; }


    }

    public class ResGetLabelData
    {
        //rule config id
        public string Id { get; set; }
        //打印模板地址
        public string TempUrl { get; set; }

        //打印模板名称
        public string TempName { get; set; }

        //打印数量
        public int? LabelQty { get; set; }

        //打印软件类型
        public int? SoftType { get; set; }

        //数据内容
        public string DataContent { get; set; }

        //字段
        public string Field { set; get; }

        //打印机指令
        public string Zpl { get; set; }
        public string Cpl { get; set; }

        public List<List<string>> Data { get; set; }

        public Dictionary<string, List<string>> ViewData { get; set; }
    }

    public class ResGenerateLabelData
    {
        public List<string> field { set; get; }

        public Dictionary<string, List<string>> view_data { get; set; }
    }

    public class ReqLabelModify
    {
        public string id { get; set; }


        public string level { get; set; }

        /// <summary>
        /// 档案类型
        /// </summary>
        public string document_type { get; set; }

        /// <summary>
        /// 标签版本号
        /// </summary>
        public string version { get; set; }

        /// <summary>
        /// 标签名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 标签尺寸(mm)
        /// </summary>
        public string size { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remarks { get; set; }

        /// <summary>
        /// 标签类型
        /// </summary>
        public int? label_type { get; set; }

        /// <summary>
        /// 是否通用--1通用，0不通用
        /// </summary>
        public int? is_common { get; set; }
    }

    /*public class ResLabelGetbyid : CLabelT
    {
        public List<ResRFileT> file_list { get; set; } = new List<ResRFileT>() { };
        public List<CLabelConfigDetailT> detail_list { get; set; }
    }*/

    public class ReqModifyLabelDesign : Bas_Label
    {
        public List<Bas_LabelConfigDetail> DetailList { get; set; }


    }


    public class ReqUpdateContent
    {

        public long LabelId { get; set; }
        public string Content { get; set; }
        public string Size { get; set; }
        public string Zpl { get; set; }
    }

}
